<?php

namespace App\Library\Requests\Demo;

use App\Library\Requests\Base\BasePageRequest;
use App\Library\Rules\LikeRule;

class DemoPageRequest extends BasePageRequest
{
    public function rules(): array
    {
        return array_merge(parent::rules(), [
            'switch' => 'nullable|boolean',
            'title' => ['nullable', 'string', 'max:20', new LikeRule],
        ]);
    }
}
